<template>
    <div>
        <p>这里是用于vuex测试，包括模块和vuex通讯测试</p>
        <p>`````````````</p>
        <el-button
            type="danger"
            @click="hello3()"
            
        >double</el-button>
            <p>count的值为:{{count}}</p>
            h:{{h}}

    </div>
</template>

<script>
import { mapState, mapGetters, mapMutations, mapActions } from 'vuex'
export default {
    name: 'firstMenu',
    data () {
        return {

        }
    },
    computed: {
        ...mapState(
            'moduleA',['count']
        ),
        ...mapState(
            'b',['h']
        ),
        ...mapGetters( ['b','hello'])
    },
    methods: {
        ...mapMutations('b',["hello3"]),
        ...mapActions('b',['hello2'])

    }
}
</script>
